﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Travel.Data;
using Travel.Data.Dtos;
using Travel.Data.Inputs;

namespace Travel.Service.User
{
    /// <summary>
    /// 角色权限相关服务
    /// </summary>
    public interface IRoleAuthorityService
    {
        /// <summary>
        /// 为角色分配权限
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<Results<int>> DistributeAuthority(RoleAuthorityInput input);
        /// <summary>
        /// 获取左边菜单栏
        /// </summary>
        /// <param name="loginRoleId"></param>
        /// <returns></returns>
        Task<Results<List<LeftMenuDto>>> GetLeftMenuByRoleId(long loginRoleId);
        /// <summary>
        /// 获取角色权限列表
        /// </summary>
        /// <param name="loginRoleId"></param>
        /// <returns></returns>
        Task<Results<List<AuthorityDto>>> GetAuthoritiesByRoleId(long loginRoleId);
    }
}
